package cn.sixmillions.demo01;

import cn.sixmillions.demo01.entity.Clazz;
import cn.sixmillions.demo01.entity.Student;

/**
 * 传统当时绑定学生和班级的关系
 */
public class OldApplication {

    public static void main(String[] args) {
        Clazz oneClazz = new Clazz(1, "一班", "一楼东面，班主任是张三");
        Clazz twoClazz = new Clazz(2, "二班", "二楼，班主任是李四");
        Clazz threeClazz = new Clazz(3, "三班", "三楼楼西面，班主任是王五");
        Student s1 = new Student(1001, "彭于晏", true, oneClazz);
        Student s2 = new Student(1002, "林心如", false, twoClazz);
        Student s3 = new Student(1003, "吴亦凡", true, threeClazz);
        s1.say();
        s2.say();
        s3.say();
    }
}
